import Favorite from './pages/Favoraties'
import Home from './pages/Home'
import NavBar from './components/NavBar'
import { Routes, Route } from 'react-router-dom'
import { MovieProvider } from './contexts/MovieContext'
import './css/App.css'

function App() {
  return (
    <MovieProvider>
      <NavBar></NavBar>
      <main className='main-container'>
        <Routes>
          <Route path="/" element={<Home />} />
          <Route path="/favorite" element={<Favorite />} />
        </Routes>
      </main>
    </MovieProvider>
  )
}

export default App
